package cn.edu.xmu.oomall.order.model.vo;

import cn.edu.xmu.oomall.order.constant.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 创建订单的返回信息
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class OrderPaymentRetVo {
    @ApiModelProperty(value = "单据id")
    private String orderSn;
    @ApiModelProperty(value = "单据类型 0 订单，2 订单订金， 3 订单尾款")
    private Byte documentType;
    @ApiModelProperty(value = "备注")
    private String descr;
    @ApiModelProperty(value = "支付金额")
    private Long amount;
    @ApiModelProperty(value = "开始支付时间")
    @JsonFormat(pattern = Constants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime beginTime;
    @ApiModelProperty(value = "支付截止时间")
    @JsonFormat(pattern = Constants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime endTime;

}
